package com.example.bbs.model;

import java.util.Date;

/**
 * @auther: zhangxin
 * @Description:
 */
public class User {

    private int userId;
    private String userName;
    private String userPwd;
    private String userHead;
    private int postNumber;
    private Date createTime;
    private Date loginTime;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserHead() {
        return userHead;
    }

    public void setUserHead(String userHead) {
        this.userHead = userHead;
    }

    public int getPostNumber() {
        return postNumber;
    }

    public void setPostNumber(int postNumber) {
        this.postNumber = postNumber;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public User() {
    }

    public User(int userId) {
        this.userId = userId;
    }

    public User(String userName) {
        this.userName = userName;
    }

    public User(String userName, String userPwd, Date createTime) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.createTime = createTime;
    }

    public User(int userId, String userName, String userPwd, Date createTime) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.createTime = createTime;
    }

    public User(String userName, String userPwd) {
        this.userName = userName;
        this.userPwd = userPwd;
    }

    public User(String userName, String userPwd, String userHead, int postNumber, Date createTime) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userHead = userHead;
        this.postNumber = postNumber;
        this.createTime = createTime;
    }

    public User(String userName, String userPwd, String userHead) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userHead = userHead;
    }

    public User(Date loginTime) {
        this.loginTime = loginTime;
    }

    public User(int userId, String userName, String userPwd, String userHead, int postNumber, Date createTime, Date loginTime) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.userHead = userHead;
        this.postNumber = postNumber;
        this.createTime = createTime;
        this.loginTime = loginTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", userHead='" + userHead + '\'' +
                ", postNumber=" + postNumber +
                ", createTime=" + createTime +
                ", loginTime=" + loginTime +
                '}';
    }
}
